package com.foreknow.demo13;

public class Person {
  private String name;
  private int age;
  private String school;

  public  Person() {
    System.out.println("1111111111111");
  }

  public Person(String name,int age) {
    this(); //this()只能写在方法的第一行
    System.out.println(name);
    System.out.println(age);
  }

  public Person(String name,int age,String school){
    this(name,age);//表示调用两个参数的构造器 ，只能写在方法的第一行
    System.out.println(school);
  }

  public static void main(String[] args) {
    Person person = new Person("tom",30,"foreknow");
  }


}
